local _M = {}

_M._VERSION = '0.01'

local mt = { __index = _M }

-- 字符串 split 分割
function _M.split(s, p)
  local rt= {}
  string.gsub(s, '[^'..p..']+', function(w) table.insert(rt, w) end )
  return rt
end

-- 支持字符串前后 trim
function _M.trim(s)
  return (s:gsub("^%s*(.-)%s*$", "%1"))
end

return _M

